package cn.bgs.service;

import cn.bgs.common.R;
import cn.bgs.pojo.User;
import cn.bgs.vo.UserFile;
import cn.bgs.vo.Residents;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 用户/管理员表 服务类
 * </p>
 *
 * @author cf
 * @since 2022-06-07
 */
public interface IUserService extends IService<User> {

    R whlogin(String email,String password);

    R register(String email,String password);

    R forgot(String email,String password);

    User login(String phone, String password);

    User getPhone(String phone);

    int selectEmail(String email);

    void registerInfo(User user);

    void updatePwd(User user);

    void appUserInfo(UserFile userFile);

    User getUser(String userId);

    List<User> intoFind(String relationShip);

    R findResidents(String type,String name);

    R delResidents(Integer id);

    R countWorkbench();

    R updateResident(Residents residents);

    R auditResident(Integer userId,String audit);
}
